#include <QCoreApplication>

#include <string>

#include "qrcodetools.h"


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    qrcode::QRCodeTools *qrcodeTool = new qrcode::QRCodeTools();
    qrcodeTool->setCOE(1);

    std::string str1 = "123456";
    std::string str2 = "测试：商品名称：C++编程思想，价格：100，始发地：南京，到达地方：宣城，到达时间：2017.4.20，运输工具：汽车，出版社：电子工业出版社";
    std::string str3 = "测试";
    qrcodeTool->GenerteQRCode(str2, 'L');

    qrcodeTool->DecodeQRCode("result.png");

    return a.exec();
}
